package com.bjsxt.shop.users.service;

import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;
import com.bjsxt.shop.common.util.PageInfoUtil;
import com.bjsxt.shop.users.pojo.ARole;
import com.bjsxt.shop.users.pojo.Aadmins;

/**
 * 用户模块的service
 */
public interface IUserService
{
	// 保存一条记录
	JSONObject saveOneAadminsService(Aadmins admins);

	// 更新一条记录
	JSONObject updateOneAadminsService(Aadmins admins);

	// 删除一条
	JSONObject deleteOneAadminsService(Aadmins admins);

	// 查询一条
	Aadmins findOneAadminsService(Map<String, Object> condMap);

	// 查询多条
	List<Aadmins> findCondListAadminsService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);

	// 保存一条记录
	JSONObject saveOneARoleService(ARole role);

	// 更新一条记录
	JSONObject updateOneRoleService(ARole role);

	// 删除一条
	JSONObject deleteOneARoleService(ARole role);

	// 查询一条
	ARole findOneARoleService(Map<String, Object> condMap);

	// 查询多条
	List<ARole> findCondListARoleService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
}
